package com.bawei.mall.product.service.impl;

import com.bawei.mall.product.mapper.CAddressMapper;
import com.bawei.mall.product.service.ICAddressService;
import com.bawei.mall.product.domain.Po.Address;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author：liurui
 * @Package：com.bawei.mall.search.service.impl
 * @Project：mall_cloud
 * @name：AddressServiceImpl
 */
@Service
public class CAddressServiceImpl implements ICAddressService {
    @Autowired
    private CAddressMapper mapper;

    @Override
    public List<Address> findAddress() {
        return mapper.findAddress();
    }

    @Override
    public void add(Address address) {
        mapper.add(address);
    }

    @Override
    public void update(Address address,Integer id) {
        mapper.update(address,id);
    }

    @Override
    public void delete(Integer id) {
        mapper.delete(id);
    }

    @Override
    public Address findaddress(Integer id) {
        return mapper.findaddress(id);
    }


}
